package com.unohacha.qqj.fzdr.personal.model;

import com.unohacha.qqj.fzdr.personal.presenter.IReleaseManagementPresenter;

public class ReleaseManagementImpl {

    private IReleaseManagementPresenter iReleaseManagementPresenter;

    public ReleaseManagementImpl(IReleaseManagementPresenter iReleaseManagementPresenter) {
        this.iReleaseManagementPresenter = iReleaseManagementPresenter;
    }

    public void getReleaseManagement(String token, String typeid, String supply_cate_one, String supply_cate_two, String keyword, String page) {
//        Call<HttpResult<String>> call = RetrofitManager.getInstance().supplyReleaseManagement(token, typeid, supply_cate_one, supply_cate_two, keyword, page);
//        call.enqueue(new Callback<HttpResult<String>>() {
//            @Override
//            public void onResponse(Call<HttpResult<String>> call, Response<HttpResult<String>> response) {
//                if (response.body().getData() != null) {
//                    iReleaseManagementPresenter.upDataReleaseManagement(response.body().getData());
//                } else {
//                    iReleaseManagementPresenter.upDataReleaseManagement("");
//                }
//
//            }
//
//            @Override
//            public void onFailure(Call<HttpResult<String>> call, Throwable t) {
//
//            }
//        });
    }
}
